package com.zgy.myshellcommand.config;

import cn.hutool.core.thread.ThreadUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;

import java.util.concurrent.ExecutorService;

@Configuration
public class ExecutorPoolConfig {
    @Bean
    @Lazy
    ExecutorService executor(){
        return ThreadUtil.newExecutor(3,7);
    }
}
